<?php /* Smarty version Smarty-3.0.5, created on 2011-05-31 16:28:40
         compiled from ".\templates\page.tpl" */ ?>
<?php /*%%SmartyHeaderCode:80524de51738372c54-00851633%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'bf82641bebbeb85dc7651cd1f326284d8189b2ca' => 
    array (
      0 => '.\\templates\\page.tpl',
      1 => 1306859317,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '80524de51738372c54-00851633',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!isset($_smarty_tpl->tpl_vars['pageStyles']) || !is_array($_smarty_tpl->tpl_vars['pageStyles']->value)) $_smarty_tpl->createLocalArrayVariable('pageStyles', null, null);
$_smarty_tpl->tpl_vars['pageStyles']->value[] = "css/mainstyle.css";?>
<?php $_template = new Smarty_Internal_Template("header.tpl", $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
<body>

    <!-- Page -->
    <div class="page">


        <!-- Banner -->
        <div class="banner">
            <form class= "userinfoplace">
                <a href="?page=FelhasznaloiAdatok"><?php echo $_smarty_tpl->getVariable('userinfo')->value['Username'];?>
</a>
            </form>
            <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1024" height="120" id="banner" align="middle" >
                <param name="movie" value="banner.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="play" value="true" />
                <param name="loop" value="true" />
                <param name="wmode" value="window" />
                <param name="scale" value="showall" />
                <param name="menu" value="true" />
                <param name="devicefont" value="false" />
                <param name="salign" value="" />
                <param name="allowScriptAccess" value="sameDomain" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="images/banner.swf" width="1024" height="120">
                    <param name="movie" value="images/banner.swf" />
                    <param name="quality" value="high" />
                    <param name="bgcolor" value="#ffffff" />
                    <param name="play" value="true" />
                    <param name="loop" value="true" />
                    <param name="wmode" value="transparent" />
                    <param name="scale" value="showall" />
                    <param name="menu" value="true" />
                    <param name="devicefont" value="false" />
                    <param name="salign" value="" />
                    <param name="allowScriptAccess" value="sameDomain" />
                    <!--<![endif]-->
                    <a href="http://www.adobe.com/go/getflash">
                        <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
                    </a>
                    <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </div>

        <!-- Menu -->

        <div class="menu border">

            <p class= "home"><a href="?page=Main">Menu</a></p>

            <ul>
                <?php if (in_array('STUDENT',$_smarty_tpl->getVariable('user')->value->getPermissions())){?>
                <li>
                    <p class="button_tan"><a href="?page=Tanulmanyi"></a></p>
                </li>
                <?php }?>
               <?php if (in_array('STUDENT',$_smarty_tpl->getVariable('user')->value->getPermissions())){?>
                <li>
                    <p class="button_teszt"><a href="?page=TesztKitoltes"></a></p>
                </li>
                 <?php }?>
                <?php if (in_array('TEACHER',$_smarty_tpl->getVariable('user')->value->getPermissions())){?>
                <li>
                    <p class="button_eredmeny"><a href="?page=Tereminformaciok"></a></p>
                </li>
                 <?php }?>
                <?php if (in_array('TEACHER',$_smarty_tpl->getVariable('user')->value->getPermissions())){?>
                <li>
                    <p class="button_tesztkeszites"><a href="?page=TesztKeszites"></a></p>
                </li>
                 <?php }?>
                <?php if (in_array('TEACHER',$_smarty_tpl->getVariable('user')->value->getPermissions())){?>
                <li>
                    <p class="button_resz"><a href="?page=Reszeredmenyek"></a></p>
                </li>
                 <?php }?>
                <?php if (in_array('TEACHER',$_smarty_tpl->getVariable('user')->value->getPermissions())||in_array('SECRETARY',$_smarty_tpl->getVariable('user')->value->getPermissions())||in_array('ADMIN',$_smarty_tpl->getVariable('user')->value->getPermissions())){?>
                <li>
                    <p class="button_tereminfo"><a href="?page=Tereminformaciok"></a></p>
                </li>
                 <?php }?>
                <?php if (in_array('TEACHER',$_smarty_tpl->getVariable('user')->value->getPermissions())||in_array('SECRETARY',$_smarty_tpl->getVariable('user')->value->getPermissions())||in_array('ADMIN',$_smarty_tpl->getVariable('user')->value->getPermissions())){?>
                <li>
                    <p class="button_felh"><a href="?page=Tantargy"></a></p>
                </li>
                 <?php }?>
                <li>
                    <p class="button_help"><a href="?page=Sugo"></a></p>
                </li>
                <li>
                    <p class="button_logout"><a href="?page=Login&amp;action=logout"></a></p>
                </li>
            </ul>

        </div>

        <!-- Szovegresz (kozepen) -->

        <div class="content border">
<?php $_template = new Smarty_Internal_Template($_smarty_tpl->getVariable('contentTemplate')->value, $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php $_template->updateParentVariables(0);?><?php unset($_template);?>
        </div>

        <!-- float vege -->
        <div style="clear: both"></div>
    </div>

</body>
</html>